package Chapter3;

class Student10{
	private String name;
	private int grades;
	public Student10() {
		
	}
	public Student10(String name,int grades) {
		this.grades=grades;
		this.name=name;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name=name;
	}
	public int getGrades() {
		return grades;
	}
	public void setGrades(int grades) {
		this.grades=grades;
	}
	public void intro(){
		System.out.println(name+grades);
	}
}

public class work1 {
	public static void main(String[] args) {
		Student10 stu1=new Student10("李某",21);
		Student10 stu2=new Student10();
		stu2.setName("LIMOU");
		stu2.setGrades(30);
		stu1.intro();
		stu2.intro();
	}

}
